import request from '../request'

//清空用户所有购物车
export const cleanShoppingCart = params => request.globalRequest(`/api/v1/appShoppingCart/clean`, 'POST', params)
//我的购物车
export const findByUserIdShoppingCart = params => request.globalRequest(`/api/v1/appShoppingCart/findByUserId`, 'GET', params, false)
//查询用户购物车总数
export const findTotalShoppingCart = params => request.globalRequest(`/api/v1/appShoppingCart/findTotal`, 'GET', params, false)
//增减购物车商品数量，返回该商品在购物车中数量
export const addOrSubShoppingCart = params => request.globalRequest(`/api/v1/appShoppingCart/addOrSub`, 'POST', params, false)

